package org.example.infrastructure.persistent.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.infrastructure.persistent.po.StrategyAward;

import java.util.List;

/**
 * @Author: PengHao
 * @CreateTime: 2025-07-10  18:37
 * @Description: 抽奖策略DAO
 */
@Mapper
public interface IStrategyAwardDao {
    StrategyAward queryStrategyAward(StrategyAward strategyAwardReq);

    List<StrategyAward>queryStrategyAwardList();

    List<StrategyAward> queryStrategyAwardListByStrategyId(@Param("strategyId")Long strategyId);

    String queryStrategyRuleModel(StrategyAward strategyAward);

    void updateStrategyAwardStock(StrategyAward strategyAward);

    List<StrategyAward> queryOpenActivityStrategyAwardList();
}
